<?php

use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class AddOriginValueToElOrderAdjustmentTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::table('el_order_adjustment', function (Blueprint $table) {
            $table->decimal('origin_value')->default(0)->after('origin_id'); // 门店订单会员折扣优惠,存折扣率
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::table('el_order_adjustment', function (Blueprint $table) {
            $table->dropColumn(['origin_value']);
        });
    }
}
